home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ COM Download 1.xpl < prev    next >
Text File  |  2004-02-09  |  1KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH 1"="System\Advanced System Settings"
  5. "NAME"="COM Download Options"
  6. "VERSION"="1.02"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Allow downloads of COM (ActiveX) objects for active user"
  9. "TEXT 2"="Allow downloads of COM (ActiveX) objects for all users"
  10. "DESCRIPTION 1"="By default, Windows is able to download COM (ActiveX) DLLs or EXE files from the internet."
  11. "DESCRIPTION 2"="In some cases, this can be a huge security risk so this can be deactivated here."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16.  
  17.  
  18. sV1="HKCU\Software\Policies\Microsoft\Windows\App Management\COMClassStore" 'DW 
  19. sV2="HKLM\Software\Policies\Microsoft\Windows\App Management\COMClassStore" 'DW 
  20.  
  21. Sub Plugin_Initialize 
  22.  i=RegReadValue(sV1)
  23.  if i=1 or IsEmpty(i) then setuielement 1,true
  24.  
  25.  i=RegReadValue(sV2)
  26.  if i=1 or IsEmpty(i) then setuielement 2,true
  27.  
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  if GetUIElement(1)=true then
  35.     v=1
  36.  else
  37.     v=0
  38.  end if
  39.  Call RegWriteValue(sV1,v,2)
  40.  
  41.  if GetUIElement(2)=true then
  42.     v=1
  43.  else
  44.     v=0
  45.  end if
  46.  Call RegWriteValue(sV2,v,2)
  47.  
  48.  
  49. End Sub
  50.  
  51. Sub Plugin_Terminate 
  52. End Sub
  53.